<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
      <div class="layui-form-item layui-inline">
          <div class="layui-form-item layui-inline">
              <label class="layui-form-label">关键字搜索</label>
              <div class="layui-input-inline">
                  <input name="keywords" value="{$Think.get.keywords|default=''}" placeholder="请输入关键字" class="layui-input">
              </div>
          </div>


          <div class="layui-form-item layui-inline">
              <label class="layui-form-label">性别</label>
              <div class="layui-input-inline">
                  <select class="layui-select" name="sex">
                      {foreach [''=>'- 全部 -','0'=>'男','1'=>'女'] as $k=>$v}
                      <!--{eq name='Think.get.sex' value='$k.""'}-->
                      <option selected value="{$k}">{$v}</option>
                      <!--{else}-->
                      <option value="{$k}">{$v}</option>
                      <!--{/eq}-->
                      {/foreach}
                  </select>
              </div>
          </div>

          <div class="layui-form-item layui-inline">
              <label class="layui-form-label">添加时间</label>
              <div class="layui-input-inline">
                  <input name="create_time" id="create_at" value="{$Think.get.create_time}" placeholder="请选择添加时间" class="layui-input">
              </div>
          </div>
        </div>
        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
    <script>
        form.render();

        (function () {
            window.form.render();
            window.laydate.render({range: true, elem: '#create_at'});
        })();</script>
</fieldset>
